import React from 'react';
import CheckBox from 'react-native-check-box';
import { colors, sizes } from 'bee/themes';

// @flow
type Props = {
  isChecked: boolean,
  onClick: Function,
  lable?: string,
};
export default class CustomeCheckBox extends React.Component<Props> {
  render() {
    return (
      <CheckBox
        checkBoxColor={colors[1001]}
        isChecked={this.props.isChecked}
        onClick={() => this.props.onClick}
        rightText={this.props.label}
        rightTextStyle={{
          fontSize: sizes.f1,
          color: colors[1101],
        }}
        {...this.props}
      />
    );
  }
}
